import request from '@/utils/request'

// 查询计划任务列表
export function listScheduleTask(query) {
  return request({
    url: '/security/scheduleTask/list',
    method: 'get',
    params: query
  })
}

// 查询计划任务详细
export function getScheduleTask(id) {
  return request({
    url: '/security/scheduleTask/' + id,
    method: 'get'
  })
}

// 新增计划任务
export function addScheduleTask(data) {
  return request({
    url: '/security/scheduleTask',
    method: 'post',
    data: data
  })
}

// 修改计划任务
export function updateScheduleTask(data) {
  return request({
    url: '/security/scheduleTask',
    method: 'put',
    data: data
  })
}

// 删除计划任务
export function delScheduleTask(id) {
  return request({
    url: '/security/scheduleTask/' + id,
    method: 'delete'
  })
}
